home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / ftn / texbin.z / texbin
Encoding:
Text File  |  2002-10-03  |  5.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4. tttteeeexxxxbbbbiiiinnnn((((3333GGGG))))                                                          tttteeeexxxxbbbbiiiinnnn((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      tttteeeexxxxbbbbiiiinnnn -  selects a texture function
  10.  
  11. FFFFOOOORRRRTTTTRRRRAAAANNNN SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee tttteeeexxxxbbbbiiiinnnn((((ttttaaaarrrrggggeeeetttt,,,, iiiinnnnddddeeeexxxx))))
  13.      iiiinnnntttteeeeggggeeeerrrr****4444 ttttaaaarrrrggggeeeetttt,,,, iiiinnnnddddeeeexxxx
  14.  
  15. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  16.      _t_a_r_g_e_t   expects the texture resource to which the texture function
  17.               definition is to be bound.  There are three appropriate
  18.               resources, TTTTXXXXTTTTEEEEXXXXTTTT , TTTTXXXXTTTTEEEEXXXXDDDD and TTTTXXXXTTTTEEEEXXXXIIII.
  19.  
  20.      _i_n_d_e_x    expects the name of the texture function that is being bound.
  21.               Name is the index passed to tttteeeexxxxddddeeeeffff when the texture function was
  22.               defined.
  23.  
  24. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  25.      Texture coordinates, _s,_t,_u may be specified at geometry vertices,
  26.      similarly to color, depth, and vertex normals.  The texture coordinates
  27.      are interpolated from the values specified at the vertices for each
  28.      screen pixel touched by the geometry.  A texture function maps the
  29.      texture coordinates _s,_t, or _s,_t,_u, corresponding to a screen pixel into
  30.      _n_c values, called texture function outputs, using an _i_m_a_g_e and a set of
  31.      properties. The texture function outputs may be translated with a texture
  32.      look-up table.  The texture function outputs are used by the texture
  33.      environment function to modify the screen pixel color.
  34.  
  35.      tttteeeexxxxddddeeeeffff2222dddd and tttteeeexxxxddddeeeeffff3333dddd define a texture function and tttteeeexxxxbbbbiiiinnnndddd selects which
  36.      texture function definition to use.  The texture environment function is
  37.      defined by tttteeeevvvvddddeeeeffff and selected by tttteeeevvvvbbbbiiiinnnndddd. The texture look-up table is
  38.      defined by ttttlllluuuuttttddddeeeeffff and selected by ttttlllluuuuttttbbbbiiiinnnndddd. The texture coordinates are
  39.      specified with the tttt family of commands.
  40.  
  41.      By default texture function definition 0 is bound to TTTTXXXXTTTTEEEEXXXXTTTT.  Texture
  42.      mapping is enabled when an texture function definition other than 0 is
  43.      bound to TTTTXXXXTTTTEEEEXXXXTTTT, and a texture environment definition other than 0 is
  44.      bound to TTTTVVVVEEEENNNNVVVV0000. (See tttteeeevvvvbbbbiiiinnnn.)  If the texture bound to TTTTXXXXTTTTEEEEXXXXTTTT, uses a
  45.      detail enhancing magnification algorithm, the texture bound to TTTTXXXXTTTTEEEEXXXXDDDD, is
  46.      used in that calculation. If no texture is bound to TTTTXXXXTTTTEEEEXXXXDDDD, and the
  47.      magnification algorithm reqires a detail texture results are undefined.
  48.  
  49.      can be used in the following way to control texture memory management.
  50.      The N most recently loaded (a texbind that required a load) textures that
  51.      fit in texture memory are tracked by the GL.  If texture memory is full
  52.      and a new texture is bound, the texture that has been in texture memory
  53.      the longest replaced by the new texture. If the user wishes some other
  54.      texture to be replaced, he can idle that texture first and the new
  55.      texture will use the space vacated by the idled texture. A simple example
  56.      is the case where two textures can fit in texture memory and user wishes
  57.      to keep one texture, texture A, in memory always and cycle through three
  58.      other textures, B, C, D, of which only one will fit. To avoid replacing
  59.      texture A, the user can idle texture B after primitives are drawn with
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. tttteeeexxxxbbbbiiiinnnn((((3333GGGG))))                                                          tttteeeexxxxbbbbiiiinnnn((((3333GGGG))))
  71.  
  72.  
  73.  
  74.      it, and when C is bound (and loaded), it will take the space vacated by
  75.      B, and leave the texture A alone.
  76.  
  77. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  78.      t, tevbind, tevdef, texdef2d t, tevbind, tevdef, texdef
  79.  
  80. NNNNOOOOTTTTEEEESSSS
  81.      IRIS-4D G, GT, and GTX models, and the Personal Iris, do not support
  82.      texture mapping.  tttteeeexxxxbbbbiiiinnnn is ignored by these machines.  The Iris Indy,
  83.      Indigo Entry, and XL support texture mapping except for lines.  Use
  84.      ggggeeeettttggggddddeeee to determine whether texture mapping is supported.
  85.  
  86.      tttteeeexxxxbbbbiiiinnnn cannot be used while mmmmmmmmooooddddeeee is MMMMSSSSIIIINNNNGGGGLLLL.
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.